home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 36
/
036.d81
/
speed test
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
88 lines
1 rem speed adjustment program
3 rem
5 rem
7 rem
10 poke 53281,1:poke53280,1:printchr$(30)
20 printchr$(147)
30 open1,8,15
40 print" "chr$(18)"speed adjustment program"
50 print
60 printtab(9)"please wait"
70 fori=.to161
80 read a:s=s+a
90 print#1,"m-w";chr$(i)chr$(3);chr$(1)chr$(a)
100 nexti
110 if s<>15669 then print"error in data":goto 480
120 print
130 print
140 printtab(4)"please insert a blank formatted "
150 print
160 printtab(10)"diskette"
180 print
190 print
200 printtab(4)"when ready to start press "chr$(18)"space"chr$(146)
210 geta$:ifa$<>chr$(32)then 210
220 printchr$(19)
230 for i=.to 5:printchr$(17):next i
240 print
250 print
260 print
270 print
280 print
290 print"press "chr$(18)"f7"chr$(146)" when speed is o.k."
295 gosub 560
300 fori=.to2:printchr$(145);:next
310 print#1,"m-w"chr$(5)chr$(3)chr$(1)chr$(11)
320 t=36:j=14:gosub 570
330 fori=1 to 4
340 print#1,"m-r"chr$(6+i)chr$(3):get#1,b$
350 s(i)=asc(b$+chr$(.))
360 next i
370 if s(3)=0 or s(4)=0 then 500
380 c=256*(s(4)+s(3))+s(2)+s(1)-3996
390 c=int(c/20+0.5)
400 printchr$(145)"disk drive speed is "c"ms "
410 geta$:ifa$=chr$(136)then 450
420 if abs(c)>5 then 310
430 print#1,"m-w"chr$(5)chr$(3)chr$(1)chr$(78)
440 goto 320
450 printchr$(17)chr$(17)chr$(17)
460 print"o.k."
470 gosub 560
480 close1
490 end
500 print
510 printchr$(18)"error !!->"
520 print"check your disk!!! "
530 fori=1to1000:nexti
540 goto 470
550 rem
560 t=1:j=1
570 print#1,"m-w"chr$(6)chr$(0)chr$(2)chr$(t)chr$(0)
580 print#1,"m-w"chr$(0)chr$(0)chr$(1)chr$(j*16)
590 print#1,"m-r"chr$(0)chr$(0):get#1,l$:l=asc(l$+chr$(0)):ifl>127then 590
600 if j=12 then fori=1to2500:next
610 return
620 rem
630 data 169,0,133,0,76,11,3,0
640 data 0,0,0,120,173,12,28,41
650 data 31,9,192,141,12,28,169,255
660 data 141,3,28,162,85,142,1,28
670 data 162,50,160,0,80,254,184,136
680 data 208,250,202,208,247,80,254,184
690 data 141,1,28,169,224,13,12,28
700 data 162,4,80,254,184,202,208,250
710 data 141,12,28,142,3,28,162,3
720 data 80,254,184,202,208,250,120,173
730 data 11,24,9,64,141,11,24,162
740 data 1,169,98,141,4,24,160,0
750 data 140,8,3,140,10,3,140,7
760 data 3,140,9,3,44,0,28,48
770 data 251,140,5,24,44,0,28,16
780 data 251,44,0,28,16,19,173,13
790 data 24,10,16,245,173,4,24,254
800 data 7,3,208,237,254,9,3,208
810 data 232,202,240,224,169,191,45,11
820 data 24,141,11,24,169,1,88,108
830 data 232,255